<!DOCTYPE html>
<html>
<head th:include="include :: header"></head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">爬取标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="dataTitle" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">是否处理</label>
                    <div class="layui-input-block">
                        <select name="dataProcessed">
                            <option value="">--请选择--</option>
                            <option value="0">未处理</option>
                            <option value="1">已处理</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">请求方法</label>
                    <div class="layui-input-block">
                        <select name="dataMethod">
                            <option value="">--请选择--</option>
                            <option th:each="item : ${method}" th:value="${item.value}" th:text="${item.name}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">结果类型</label>
                    <div class="layui-input-block">
                        <select name="dataType">
                            <option value="">--请选择--</option>
                            <option th:each="item : ${resultType}" th:value="${item.value}" th:text="${item.name}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <div style="padding-bottom:10px;">
                <button shiro:hasPermission="manage:reptile:reptileData:add" class="layui-btn layuiadmin-btn-operate" data-type="batchdel">删除
                </button>
                <button shiro:hasPermission="manage:reptile:reptileData:remove" class="layui-btn layuiadmin-btn-operate" data-type="add">添加
                </button>
                <button shiro:hasPermission="manage:reptile:reptileData:reptile" class="layui-btn layuiadmin-btn-operate" data-type="reptile">爬取</button>
            </div>

            <table id="LAY-table" lay-filter="LAY-table"></table>

            <script type="text/html" id="table-btn-operate">
                <a shiro:hasPermission="manage:reptile:reptileData:edit" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
                <a shiro:hasPermission="manage:reptile:reptileData:remove" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
            </script>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" th:src="@{/custom/appjs/manage/reptile/reptileData.list.js(v=${srvn})}"></script>
<script type="text/html" id="dataProcessedTpl">
    {{#  if(d.dataProcessed=='0'){ }}
    <span class="layui-badge layui-bg-red">未处理</span>
    {{#  }  }}
    {{#  if(d.dataProcessed=='1'){ }}
    <span class="layui-badge layui-bg-blue">已处理</span>
    {{#  }  }}
</script>
</body>
</html>